#include"workerthread.h"
#include<iostream>
#include<vector>
using namespace std;
class ThreadPool{  //线程池
private:
     vector<workerthread*>thread;
     int index;                 //线程当前该取哪一个线程                
public:
    explicit ThreadPool(int n);
    void Run();                 //启动线程
    EpollReactor*TakeReactor(); //取出一个线程的反应堆
    inline int getthreadnum(){  //线程的数量
        return thread.size();
    } 
};